﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tier3CommonDALLifeIt;

namespace DALLifeIt.DALLifeIt
{
    public class CatalogoVWDAL: Linq3tierDALBase
    {

        public V_RFID_ARTICULOS EncontrarArticulo(string nombre)
        {
            var articulo = GetTables<V_RFID_ARTICULOS>();

            var query = (from h in articulo
                         select h     
                        );
            query = query.Where(c => c.DESCRIPCION.Contains(nombre));

            return query.ToList().First();
        }
    }
}
